package RouterGroupSeting

import (
	"gin/study_1/Controllers"
	"github.com/gin-gonic/gin"
	"net/http"
)

// 设置路由组
func SetRouteGroup(router *gin.Engine) {

	v1 := router.Group("v1")
	{
		v1.POST("/StuInsert", Controllers.TestInsert)
		v1.GET("/AllStudent", Controllers.GetAllStudent)
		v1.Any("/any", func(c *gin.Context) {
			c.JSON(http.StatusOK, gin.H{
				"code":    1,
				"message": "success",
				"data":    "",
			})
		})
	}
}

